/**
 * Created by dazq on 16/11/22.
 */
import React, { Component } from 'react';
import { View, Text, TouchableHighlight,NavigatorIOS,StyleSheet } from 'react-native';
import ListViewBasics from './listView'

export default class Navigator_next extends Component {
    constructor(props, context) {
        super(props, context);
        this._onPop = this._onPop.bind(this);
    }
    _onPop() {
        console.log('d');
        this.props.navigator.pop();
    }
    render() {
        
        return (
            <View style={{marginTop:100}}>
                <Text>Current Scene: { this.props.titles }</Text>
                <TouchableHighlight onPress={()=>(this.props.navigator.pop())}>
                    <Text>点我返回上一场景</Text>
                </TouchableHighlight>
                <TouchableHighlight onPress={()=>(this.props.navigator.push({
                    title:'第三页',
                    component:ListViewBasics,
                }))}>
                    <Text>点我返回下一场景</Text>
                </TouchableHighlight>
            </View>
        )
    }
}